package com.cn.crmsystem.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.data.annotation.Id;

import java.util.Date;

@ApiModel(value = "商品实体类(product)")
public class Product {
  @Id
  @ApiModelProperty("商品id")
  private Integer product_id;

  @ApiModelProperty("商品单位(件、米、元...)")
  private String product_company;
  @ApiModelProperty("商品编码")
  private String product_code;
  @ApiModelProperty("价格")
  private double product_money;
  @ApiModelProperty("删除状态（0：显示,1：隐藏）")
  private Integer delete_state;
  @ApiModelProperty("产品类型")
  private Integer production_id;
  @ApiModelProperty("是否上架（0：上架；1：不上架）")
  private Integer product_state;
  @ApiModelProperty("上架时间")
  @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
  private Date launch_time;
  @ApiModelProperty("产品描述")
  private String product_description;
  @ApiModelProperty("类型名称")
  private String production_name;
  @ApiModelProperty("商品名称")
  private String product_name;


  public Integer getProduct_id() {
    return product_id;
  }

  public void setProduct_id(Integer product_id) {
    this.product_id = product_id;
  }

  public String getProduct_company() {
    return product_company;
  }

  public void setProduct_company(String product_company) {
    this.product_company = product_company;
  }

  public String getProduct_code() {
    return product_code;
  }

  public void setProduct_code(String product_code) {
    this.product_code = product_code;
  }

  public double getProduct_money() {
    return product_money;
  }

  public void setProduct_money(double product_money) {
    this.product_money = product_money;
  }

  public Integer getDelete_state() {
    return delete_state;
  }

  public void setDelete_state(Integer delete_state) {
    this.delete_state = delete_state;
  }

  public Integer getProduction_id() {
    return production_id;
  }

  public void setProduction_id(Integer production_id) {
    this.production_id = production_id;
  }

  public Integer getProduct_state() {
    return product_state;
  }

  public void setProduct_state(Integer product_state) {
    this.product_state = product_state;
  }

  public Date getLaunch_time() {
    return launch_time;
  }

  public void setLaunch_time(Date launch_time) {
    this.launch_time = launch_time;
  }

  public String getProduct_description() {
    return product_description;
  }

  public void setProduct_description(String product_description) {
    this.product_description = product_description;
  }

  public String getProduction_name() {
    return production_name;
  }

  public void setProduction_name(String production_name) {
    this.production_name = production_name;
  }

  public String getProduct_name() {
    return product_name;
  }

  public void setProduct_name(String product_name) {
    this.product_name = product_name;
  }
}
